package org.geekbang.projects.orm;

import org.apache.commons.lang.StringUtils;

/**
* 大小写转换  
* @author : KangNing Hu
*/
public class CaseFieldMappingHandler extends HumpFieldMappingHandler{




	@Override
	public String columnNameToFieldName(String columnName) {
		return super.columnNameToFieldName(columnName.toLowerCase());
	}

	@Override
	public String fieldNameToColumnName(String fieldName) {
		return super.fieldNameToColumnName(fieldName).toUpperCase();
	}


	public static void main(String[] args) {
		System.out.print(new CaseFieldMappingHandler().columnNameToFieldName("AAA_SSSS"));
		System.out.println(new CaseFieldMappingHandler().fieldNameToColumnName("aaaBbb"));
	}
}
